package com.bangcommunity.bbframe.http.util;

import java.io.InputStream;

import okio.Buffer;

/**
 * @author tanghc
 */
public class OkHttpClientUtil {

    public static HttpsUtils.SSLParams sslParams = null;
    static {
        String ssl = HttpCertificateUtil.certificate;
        if (null != ssl) {
            InputStream inputStream = new Buffer().writeUtf8(ssl).inputStream();
            sslParams = HttpsUtils.getSslSocketFactory(new InputStream[] { inputStream }, null, null);
        }
    }
}
